package com.zito.health.service;

import com.zito.health.entity.Unit;
import com.zito.health.vo.UnitVo;

import java.util.List;

public interface UnitService {
    public Unit save(Unit object);

    public void delete(Integer id);

    public void update(Unit object);

    public List<Unit> query();

    public List<Unit> query(Unit object);

    public Unit queryOne(Unit object);

    public Unit queryById(Integer id);

    public boolean exists(Integer id);

    List<UnitVo> queryList(Unit param);

    List<Unit> validateUnitname4Update(Unit u);

    Integer verificationSingle(Integer unitId,Integer roleId);
}
